package com.booking.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Qikai.Lin
 * @date 2023/4/24
 */
@Getter
@AllArgsConstructor
public enum AuditStatusEnums {
    READY_EXAMINE("READY_EXAMINE", "等待管理员审批"),
    REJECTED("REJECTED", "审批不通过,驳回请求"),
    AUDITED("AUDITED", "已审批"),
    ;
    private final String status;
    private final String msg;
    public static String getMsgByStatus(String status) {
        for (AuditStatusEnums enums : AuditStatusEnums.values()) {
            if (enums.getStatus().equals(status)) {
                return enums.getMsg();
            }
        }
        return null;
    }
}
